package com.jingdianjichi.subject.api.client;

import com.jingdianjichi.subject.api.dto.AuthUserDTO;
import com.jingdianjichi.subject.common.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "jc-club-auth",path = "/user")
@Component
public interface AuthFeignClient {

    /**
     * 获取用户信息
     */
    @RequestMapping("/getUserInfo")
    Result<AuthUserDTO> getUserInfo(@RequestBody AuthUserDTO authUserDTO);

}
